#include "HashMap.h"
#include <stdlib.h>
#include <stdio.h>

int main(void) {
	HashMap* map = hashmap_create();
	if (!map) {
		printf("Error: hashmap create failed.\n");
		exit(1);
	}

	hashmap_put(map, "liu qiang dong", "zhang ze tian");
	hashmap_put(map, "wang bao qiang", "ma rong");
	hashmap_put(map, "wen zhang", "ma yi li");
	hashmap_put(map, "jia nai liang", "li xiao lu");

	//V value1 = hashmap_put(map, "wen zhang", "");
	//V value2 = hashmap_put(map, "wang bao qiang", "");

	//V value1 = hashmap_get(map, "liu qiang dong");
	//V value2 = hashmap_get(map, "peanut");

	hashmap_delete(map, "wang bao qiang");
	hashmap_delete(map, "peanut");

	hashmap_destroy(map);
	return 0;
}